@zonos/elements 1.3.140 → 1.3.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{CheckoutConfig-165db6b6.js → CheckoutConfig-eaaf62a1.js} +1 -1
- package/dist/cjs/{cart-e1b59d03.js → cart-199b0751.js} +7 -7
- package/dist/cjs/{getBorderRadius-f72d8edf.js → getBorderRadius-f97c99ad.js} +1 -1
- package/dist/cjs/{handleFetch-4a90f091.js → handleFetch-864d3c53.js} +5 -5
- package/dist/cjs/{index-d56e0a8b.js → index-b678ce0c.js} +42 -8
- package/dist/cjs/index.cjs.js +38 -9
- package/dist/cjs/{isDarkColor-dd6d723b.js → isDarkColor-434d71dd.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-86cc51e4.js → paypal-4f1ee604.js} +5 -5
- package/dist/cjs/zonos-address_7.cjs.entry.js +6 -6
- package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
- package/dist/cjs/zonos-card.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +10 -10
- package/dist/cjs/zonos-checkout.cjs.entry.js +9 -9
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-flag.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +6 -6
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -7
- package/dist/cjs/zonos-hello.cjs.entry.js +6 -6
- package/dist/cjs/zonos-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-notification_3.cjs.entry.js +7 -7
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-293bb3ba.js → zonosStore-8971eb65.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-currency-toggle/zonos-currency-toggle.js +2 -2
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +1 -1
- package/dist/collection/components/store/checkout/paypal.js +1 -1
- package/dist/collection/components/utils/api/getCountries.js +1 -1
- package/dist/collection/components/utils/api/getLocalization.js +1 -1
- package/dist/collection/components/utils/handleFetch.js +2 -2
- package/dist/collection/components/utils/isValidSelector.js +1 -1
- package/dist/collection/components/utils/jsonParse.js +1 -1
- package/dist/collection/components/utils/logging/log.js +1 -1
- package/dist/collection/components/utils/logging/sendErrorLog.js +1 -1
- package/dist/collection/environment.js +1 -1
- package/dist/collection/scripts/_zonosBase.js +29 -0
- package/dist/collection/types/stripe/Apperance.js +0 -58
- package/dist/esm/{CheckoutConfig-930107d4.js → CheckoutConfig-262008fe.js} +1 -1
- package/dist/esm/{cart-709f053f.js → cart-cf87ec6f.js} +7 -7
- package/dist/esm/{getBorderRadius-bdd709e7.js → getBorderRadius-4aca63d4.js} +1 -1
- package/dist/esm/{handleFetch-22cb914b.js → handleFetch-badf4543.js} +5 -5
- package/dist/esm/{index-86b8247e.js → index-986b5ff2.js} +42 -8
- package/dist/esm/index.js +39 -10
- package/dist/esm/{isDarkColor-c6924924.js → isDarkColor-4915739f.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{paypal-77a60c44.js → paypal-b7124cc4.js} +5 -5
- package/dist/esm/zonos-address_7.entry.js +6 -6
- package/dist/esm/zonos-badge.entry.js +2 -2
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +4 -4
- package/dist/esm/zonos-card.entry.js +3 -3
- package/dist/esm/zonos-cart-items_13.entry.js +10 -10
- package/dist/esm/zonos-checkout.entry.js +9 -9
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +6 -6
- package/dist/esm/zonos-country-flag.entry.js +6 -6
- package/dist/esm/zonos-country-select_4.entry.js +6 -6
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +7 -7
- package/dist/esm/zonos-hello.entry.js +6 -6
- package/dist/esm/zonos-input.entry.js +3 -3
- package/dist/esm/zonos-language-select_2.entry.js +6 -6
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-notification_3.entry.js +7 -7
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm/{zonosStore-c493c4fe.js → zonosStore-708637e7.js} +1 -1
- package/dist/esm-es5/{CheckoutConfig-930107d4.js → CheckoutConfig-262008fe.js} +1 -1
- package/dist/esm-es5/{cart-709f053f.js → cart-cf87ec6f.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-bdd709e7.js → getBorderRadius-4aca63d4.js} +1 -1
- package/dist/esm-es5/index-986b5ff2.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-c6924924.js → isDarkColor-4915739f.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-77a60c44.js → paypal-b7124cc4.js} +1 -1
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-c493c4fe.js → zonosStore-708637e7.js} +1 -1
- package/dist/scripts/index.d.ts +5 -9
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/store/checkout/cart.d.ts +2 -3
- package/dist/types/components/store/checkout/stripe.d.ts +2 -2
- package/dist/types/components/store/hello/localization.d.ts +0 -1
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +1 -1
- package/dist/types/components/utils/api/checkItemRestrictions.d.ts +3 -3
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +3 -3
- package/dist/types/components/utils/changeDeepProperty.d.ts +2 -2
- package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +2 -1
- package/dist/types/components/utils/createCustomEvent.d.ts +3 -3
- package/dist/types/components/utils/hello/detectItemRestrictions.d.ts +3 -3
- package/dist/types/components/utils/hello/getCurrentHelloLocalePage.d.ts +1 -1
- package/dist/types/components/utils/hello/initHello.d.ts +2 -2
- package/dist/types/components/utils/resetToSelectedTab.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/types/environment.d.ts +2 -2
- package/dist/types/scripts/_stripe.d.ts +1 -1
- package/dist/types/scripts/_zonosBase.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/styles/stripe/defaultVariable.d.ts +1 -1
- package/dist/types/types/global.d.ts +0 -5
- package/dist/types/types/stripe/Apperance.d.ts +1 -2
- package/dist/types/utils/formattedUrl.d.ts +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-e205ef1c.system.entry.js → p-0197a9bf.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-be2feba6.entry.js → p-076388d3.entry.js} +1 -1
- package/dist/zonos-elements/{p-0c027d2e.entry.js → p-0920500d.entry.js} +1 -1
- package/dist/zonos-elements/{p-87ed2e17.system.entry.js → p-0b5f4ca7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a58731ec.system.js → p-0cda2818.system.js} +1 -1
- package/dist/zonos-elements/p-0d2cf216.entry.js +1 -0
- package/dist/zonos-elements/{p-3dd503fd.system.entry.js → p-0e54432c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b7307c61.js → p-1460f917.js} +1 -1
- package/dist/zonos-elements/{p-9589bd08.entry.js → p-1e3ea4ae.entry.js} +1 -1
- package/dist/zonos-elements/p-21b538ea.system.js +1 -0
- package/dist/zonos-elements/{p-22d69480.system.entry.js → p-232963d3.system.entry.js} +1 -1
- package/dist/zonos-elements/p-272052bd.system.entry.js +1 -0
- package/dist/zonos-elements/{p-0fc96872.system.entry.js → p-2761ad55.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-bc8b22ad.entry.js → p-28295342.entry.js} +1 -1
- package/dist/zonos-elements/{p-b9efc660.entry.js → p-2949faf3.entry.js} +1 -1
- package/dist/zonos-elements/{p-04a6a167.entry.js → p-2b8cddb7.entry.js} +1 -1
- package/dist/zonos-elements/{p-ad1d6ea2.entry.js → p-2c19f5e2.entry.js} +1 -1
- package/dist/zonos-elements/{p-f07c01c5.system.entry.js → p-2cfc00b8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-289ded20.system.entry.js → p-2d514c1d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1c4ff7b2.system.entry.js → p-2e152517.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4319600a.system.entry.js → p-33e1d25e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-10efff62.system.js → p-36dfc7ac.system.js} +1 -1
- package/dist/zonos-elements/{p-7a60deef.system.entry.js → p-381874b0.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-00d4bff1.entry.js → p-39cac2c1.entry.js} +1 -1
- package/dist/zonos-elements/{p-64a04391.system.entry.js → p-3cb4468f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b832ec52.entry.js → p-3cf30d83.entry.js} +1 -1
- package/dist/zonos-elements/{p-afffdfc2.js → p-3d82e70e.js} +1 -1
- package/dist/zonos-elements/{p-9b59704a.entry.js → p-44dd4269.entry.js} +1 -1
- package/dist/zonos-elements/{p-edc16f69.js → p-4b685549.js} +1 -1
- package/dist/zonos-elements/{p-ad4bc6a2.entry.js → p-545c05ce.entry.js} +1 -1
- package/dist/zonos-elements/{p-8368a79e.entry.js → p-58a09715.entry.js} +1 -1
- package/dist/zonos-elements/{p-d35376d3.js → p-6271e108.js} +2 -2
- package/dist/zonos-elements/{p-5c32689e.entry.js → p-65069140.entry.js} +1 -1
- package/dist/zonos-elements/{p-8f9affb3.system.entry.js → p-673b4402.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5b90dd6d.entry.js → p-675f60b4.entry.js} +1 -1
- package/dist/zonos-elements/p-680d3694.js +2 -0
- package/dist/zonos-elements/{p-f2867195.entry.js → p-68d79b58.entry.js} +1 -1
- package/dist/zonos-elements/{p-896d62a4.system.entry.js → p-6b490b0a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d633ced9.entry.js → p-72256333.entry.js} +1 -1
- package/dist/zonos-elements/{p-10d6fe23.js → p-766dd01f.js} +1 -1
- package/dist/zonos-elements/{p-7ef573f0.entry.js → p-7c5c0a85.entry.js} +1 -1
- package/dist/zonos-elements/{p-bb418544.system.js → p-7c643376.system.js} +1 -1
- package/dist/zonos-elements/p-866bb93e.system.js +1 -0
- package/dist/zonos-elements/{p-f8ca3e71.entry.js → p-8c487480.entry.js} +1 -1
- package/dist/zonos-elements/{p-fce202ab.entry.js → p-9306a835.entry.js} +1 -1
- package/dist/zonos-elements/{p-ffe4a999.system.entry.js → p-983f23a1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-35b8dcde.entry.js → p-9b720cf4.entry.js} +1 -1
- package/dist/zonos-elements/{p-cd1fd09e.entry.js → p-9dec2b74.entry.js} +1 -1
- package/dist/zonos-elements/{p-ee1e1d94.system.entry.js → p-a13d5957.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-dc09df19.system.entry.js → p-a2bce31d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cf72603f.system.entry.js → p-a8bd492d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d10ffd69.js → p-b0174a8f.js} +1 -1
- package/dist/zonos-elements/{p-fd061229.system.js → p-b50667b6.system.js} +1 -1
- package/dist/zonos-elements/{p-46a5ec52.system.js → p-c0164a3c.system.js} +1 -1
- package/dist/zonos-elements/{p-6b0aa1bb.system.js → p-c1b098de.system.js} +1 -1
- package/dist/zonos-elements/{p-010f5797.system.entry.js → p-d198421b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7acf6802.entry.js → p-d381288e.entry.js} +1 -1
- package/dist/zonos-elements/{p-896ab1ed.system.entry.js → p-d5a3851d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-25c7e4fa.system.entry.js → p-ded984d9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0aee2e4c.system.entry.js → p-e6554a6f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c78dd680.system.js → p-e9964a5a.system.js} +1 -1
- package/dist/zonos-elements/{p-461624ce.system.entry.js → p-ebdd9b64.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-01ad5be8.system.entry.js → p-f295030e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3a26cae5.entry.js → p-fc4658a6.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +68 -67
- package/dist/collection/__mocks__/vercel-app/loadZonos.js +0 -492
- package/dist/collection/__mocks__/vercel-app/localization.js +0 -1
- package/dist/collection/__mocks__/vercel-app/zonos-hello.entry.js +0 -1
- package/dist/collection/__mocks__/zonos-url/index.js +0 -1
- package/dist/collection/__mocks__/zonos-url/loadZonos.js +0 -492
- package/dist/collection/__mocks__/zonos-url/localization.js +0 -2899
- package/dist/collection/__mocks__/zonos-url/zonos-hello.entry.js +0 -1
- package/dist/esm-es5/index-86b8247e.js +0 -2
- package/dist/zonos-elements/p-26b24d0b.system.js +0 -1
- package/dist/zonos-elements/p-49e4ca08.system.entry.js +0 -1
- package/dist/zonos-elements/p-5b7da777.js +0 -2
- package/dist/zonos-elements/p-6b6cd6c3.system.js +0 -1
- package/dist/zonos-elements/p-e6c31531.entry.js +0 -1
- /package/dist/esm-es5/{handleFetch-22cb914b.js → handleFetch-badf4543.js} +0 -0
- /package/dist/zonos-elements/{p-860e46ab.js → p-a5b294d7.js} +0 -0
- /package/dist/zonos-elements/{p-febc72e7.system.js → p-bfcfd29b.system.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const zonosStore = require('./zonosStore-
|
|
4
|
-
const handleFetch = require('./handleFetch-
|
|
5
|
-
const isDarkColor = require('./isDarkColor-
|
|
6
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
3
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
4
|
+
const handleFetch = require('./handleFetch-864d3c53.js');
|
|
5
|
+
const isDarkColor = require('./isDarkColor-434d71dd.js');
|
|
6
|
+
const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
|
|
7
7
|
|
|
8
8
|
const stringsArabic = {
|
|
9
9
|
' (Duties due at door)': {
|
|
@@ -8983,7 +8983,7 @@ const getCountries = async () => {
|
|
|
8983
8983
|
}
|
|
8984
8984
|
return json;
|
|
8985
8985
|
}
|
|
8986
|
-
catch (
|
|
8986
|
+
catch (_a) {
|
|
8987
8987
|
return null;
|
|
8988
8988
|
}
|
|
8989
8989
|
};
|
|
@@ -9110,7 +9110,7 @@ const getLocalization = async () => {
|
|
|
9110
9110
|
locale: json.locale,
|
|
9111
9111
|
};
|
|
9112
9112
|
}
|
|
9113
|
-
catch (
|
|
9113
|
+
catch (_a) {
|
|
9114
9114
|
return { country: null, locale: null };
|
|
9115
9115
|
}
|
|
9116
9116
|
};
|
|
@@ -9233,7 +9233,7 @@ const isValidSelector = (selector) => {
|
|
|
9233
9233
|
// this will error out if the selector is invalid in the DOM
|
|
9234
9234
|
document.createDocumentFragment().querySelector(selector);
|
|
9235
9235
|
}
|
|
9236
|
-
catch (
|
|
9236
|
+
catch (_a) {
|
|
9237
9237
|
return false;
|
|
9238
9238
|
}
|
|
9239
9239
|
return true;
|
|
@@ -19,7 +19,7 @@ const prepInfo = (info) => {
|
|
|
19
19
|
const infoToJson = JSON.stringify(info);
|
|
20
20
|
return infoToJson;
|
|
21
21
|
}
|
|
22
|
-
catch (
|
|
22
|
+
catch (_a) {
|
|
23
23
|
if (info && typeof info.toString === 'function') {
|
|
24
24
|
const infoToString = info.toString();
|
|
25
25
|
return infoToString;
|
|
@@ -111,7 +111,7 @@ const jsonParse = (_data) => {
|
|
|
111
111
|
const json = JSON.parse(_data);
|
|
112
112
|
return json;
|
|
113
113
|
}
|
|
114
|
-
catch (
|
|
114
|
+
catch (_a) {
|
|
115
115
|
return null;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
@@ -155,7 +155,7 @@ const sendErrorLog = async ({ endpoint, errors, metadata, shouldPostReleaseError
|
|
|
155
155
|
method: 'POST',
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
catch (
|
|
158
|
+
catch (_a) {
|
|
159
159
|
const nextFallbackApi = getNextFallbackApiType();
|
|
160
160
|
if (!nextFallbackApi) {
|
|
161
161
|
return;
|
|
@@ -205,7 +205,7 @@ const encodeString = (text) => {
|
|
|
205
205
|
const encodedString = btoa(text).replace(/=/g, '');
|
|
206
206
|
return encodedString;
|
|
207
207
|
}
|
|
208
|
-
catch (
|
|
208
|
+
catch (_a) {
|
|
209
209
|
// return the reverse string if the encoding failed
|
|
210
210
|
return text
|
|
211
211
|
.replace(/[^A-Za-z0-9]/g, '')
|
|
@@ -280,7 +280,7 @@ const handleRequest = async ({ basePathType, options, path, }) => {
|
|
|
280
280
|
zonosMode,
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
|
-
catch (
|
|
283
|
+
catch (_a) {
|
|
284
284
|
const message = 'Unknown error';
|
|
285
285
|
return {
|
|
286
286
|
baseUrl,
|
|
@@ -24,7 +24,7 @@ const NAMESPACE = 'zonos-elements';
|
|
|
24
24
|
const BUILD = /* zonos-elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -416,7 +416,31 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
416
416
|
if (nonce != null) {
|
|
417
417
|
styleElm.setAttribute("nonce", nonce);
|
|
418
418
|
}
|
|
419
|
-
|
|
419
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
420
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
421
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
422
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
423
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
424
|
+
} else if ("host" in styleContainerNode) {
|
|
425
|
+
if (supportsConstructableStylesheets) {
|
|
426
|
+
const stylesheet = new CSSStyleSheet();
|
|
427
|
+
stylesheet.replaceSync(style);
|
|
428
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
429
|
+
} else {
|
|
430
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
431
|
+
if (existingStyleContainer) {
|
|
432
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
433
|
+
} else {
|
|
434
|
+
styleContainerNode.prepend(styleElm);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
} else {
|
|
438
|
+
styleContainerNode.append(styleElm);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
442
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
443
|
+
}
|
|
420
444
|
}
|
|
421
445
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
422
446
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -439,7 +463,7 @@ var attachStyles = (hostRef) => {
|
|
|
439
463
|
const scopeId2 = addStyle(
|
|
440
464
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
441
465
|
cmpMeta);
|
|
442
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
466
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
443
467
|
elm["s-sc"] = scopeId2;
|
|
444
468
|
elm.classList.add(scopeId2 + "-h");
|
|
445
469
|
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
@@ -511,7 +535,11 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
511
535
|
if (memberName === "list") {
|
|
512
536
|
isProp = false;
|
|
513
537
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
514
|
-
elm
|
|
538
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
539
|
+
elm[memberName] = n;
|
|
540
|
+
} else {
|
|
541
|
+
elm.setAttribute(memberName, n);
|
|
542
|
+
}
|
|
515
543
|
}
|
|
516
544
|
} else {
|
|
517
545
|
elm[memberName] = newValue;
|
|
@@ -591,7 +619,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
591
619
|
{
|
|
592
620
|
updateElement(null, newVNode2, isSvgMode);
|
|
593
621
|
}
|
|
594
|
-
|
|
622
|
+
const rootNode = elm.getRootNode();
|
|
623
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
624
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
595
625
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
596
626
|
}
|
|
597
627
|
{
|
|
@@ -759,7 +789,10 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
759
789
|
elm.textContent = "";
|
|
760
790
|
}
|
|
761
791
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
762
|
-
} else if (
|
|
792
|
+
} else if (
|
|
793
|
+
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
794
|
+
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
795
|
+
) {
|
|
763
796
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
764
797
|
}
|
|
765
798
|
if (isSvgMode && tag === "svg") {
|
|
@@ -799,7 +832,7 @@ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
|
|
|
799
832
|
if (element && parent && element.nodeType === 1 /* ElementNode */) {
|
|
800
833
|
const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
|
|
801
834
|
if (scopeIds.size) {
|
|
802
|
-
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] =
|
|
835
|
+
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
|
|
803
836
|
if (element["s-ol"] || iterateChildNodes) {
|
|
804
837
|
for (const childNode of Array.from(element.childNodes)) {
|
|
805
838
|
updateElementScopeIds(childNode, element, true);
|
|
@@ -1088,7 +1121,8 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1088
1121
|
if (this.hasOwnProperty(propName)) {
|
|
1089
1122
|
newValue = this[propName];
|
|
1090
1123
|
delete this[propName];
|
|
1091
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1124
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1125
|
+
this[propName] == newValue) {
|
|
1092
1126
|
return;
|
|
1093
1127
|
} else if (propName == null) {
|
|
1094
1128
|
const hostRef = getHostRef(this);
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const handleFetch = require('./handleFetch-
|
|
6
|
-
const CheckoutConfig = require('./CheckoutConfig-
|
|
5
|
+
const handleFetch = require('./handleFetch-864d3c53.js');
|
|
6
|
+
const CheckoutConfig = require('./CheckoutConfig-eaaf62a1.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Get the load version and url based on the loadScriptSrc and version
|
|
@@ -127,7 +127,7 @@ const getZonosQaUrl = () => {
|
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
129
129
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
130
|
-
const cdnUrl = "https://v1.3.
|
|
130
|
+
const cdnUrl = "https://v1.3.142.js.zonos.com";
|
|
131
131
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
132
132
|
if (!qaUrl &&
|
|
133
133
|
(cdnUrl.includes('test.') ||
|
|
@@ -311,10 +311,10 @@ const zonosLoadUrl = (() => {
|
|
|
311
311
|
}
|
|
312
312
|
return null;
|
|
313
313
|
})();
|
|
314
|
-
const ZONOS_URL = "https://v1.3.
|
|
315
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
316
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
317
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
314
|
+
const ZONOS_URL = "https://v1.3.142.js.zonos.com";
|
|
315
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.142";
|
|
316
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.142";
|
|
317
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.142";
|
|
318
318
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
319
319
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
320
320
|
class Zonos {
|
|
@@ -328,7 +328,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
328
328
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
329
329
|
Zonos._paypalMockResponse = null;
|
|
330
330
|
Zonos.isBigCommerce = false;
|
|
331
|
-
Zonos.releaseDate = "
|
|
331
|
+
Zonos.releaseDate = "1734472646609";
|
|
332
332
|
Zonos.isLegacyCheckout = false;
|
|
333
333
|
Zonos.domain = typeof window !== 'undefined'
|
|
334
334
|
? // domain that embeds the iframe
|
|
@@ -344,7 +344,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
344
344
|
Zonos.isNpm = true;
|
|
345
345
|
Zonos.zonosQaUrl = null;
|
|
346
346
|
Zonos.zonosQaUrlApi = null;
|
|
347
|
-
Zonos.version = `v${"1.3.
|
|
347
|
+
Zonos.version = `v${"1.3.142"}`;
|
|
348
348
|
Zonos.modeAlerted = false;
|
|
349
349
|
Zonos.cartData = null;
|
|
350
350
|
Zonos.paypal = null;
|
|
@@ -421,6 +421,8 @@ Zonos.init = async (params) => {
|
|
|
421
421
|
document.body.appendChild(hiddenButton);
|
|
422
422
|
}
|
|
423
423
|
handleFetch.log('init zonos');
|
|
424
|
+
// inject custom script for hosted checkout if can find it in metadata
|
|
425
|
+
_a.injectCustomScriptForHostedCheckout();
|
|
424
426
|
// inject zonos cdn
|
|
425
427
|
_a.injectZonosCdn();
|
|
426
428
|
// inject css for zonos elements
|
|
@@ -440,6 +442,33 @@ Zonos.init = async (params) => {
|
|
|
440
442
|
});
|
|
441
443
|
_a.doneInit = true;
|
|
442
444
|
};
|
|
445
|
+
Zonos.injectCustomScriptForHostedCheckout = () => {
|
|
446
|
+
const cartData = _a.cartData;
|
|
447
|
+
const metadata = (cartData === null || cartData === void 0 ? void 0 : cartData.metadata) || [];
|
|
448
|
+
const headerScript = metadata.find(meta => meta.key === 'customHeaderScript');
|
|
449
|
+
const footerScript = metadata.find(meta => meta.key === 'customFooterScript');
|
|
450
|
+
// Only inject the script if checkout is on Zonos hosted checkout and custom script is available
|
|
451
|
+
if (!window.Zonos.isLegacyCheckout || (!headerScript && !footerScript)) {
|
|
452
|
+
handleFetch.log('Skip injecting custom script for hosted checkout', 'info', {
|
|
453
|
+
footerScript,
|
|
454
|
+
headerScript,
|
|
455
|
+
isLegacyCheckout: window.Zonos.isLegacyCheckout,
|
|
456
|
+
});
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
if (headerScript) {
|
|
460
|
+
handleFetch.log('Injecting custom header script');
|
|
461
|
+
const script = document.createElement('script');
|
|
462
|
+
script.textContent = headerScript.value;
|
|
463
|
+
document.head.appendChild(script);
|
|
464
|
+
}
|
|
465
|
+
if (footerScript) {
|
|
466
|
+
handleFetch.log('Injecting custom footer script');
|
|
467
|
+
const script = document.createElement('script');
|
|
468
|
+
script.textContent = footerScript.value;
|
|
469
|
+
document.body.appendChild(script);
|
|
470
|
+
}
|
|
471
|
+
};
|
|
443
472
|
Zonos.displayCurrency = () => {
|
|
444
473
|
const zonosHello = document.querySelector('zonos-hello');
|
|
445
474
|
if (zonosHello) {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const zonosStore = require('./zonosStore-
|
|
4
|
-
const cart = require('./cart-
|
|
5
|
-
const handleFetch = require('./handleFetch-
|
|
6
|
-
const isDarkColor = require('./isDarkColor-
|
|
3
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
4
|
+
const cart = require('./cart-199b0751.js');
|
|
5
|
+
const handleFetch = require('./handleFetch-864d3c53.js');
|
|
6
|
+
const isDarkColor = require('./isDarkColor-434d71dd.js');
|
|
7
7
|
|
|
8
8
|
/*!
|
|
9
9
|
* paypal-js v8.1.0 (2024-06-07T16:55:00.122Z)
|
|
@@ -327,7 +327,7 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
|
|
|
327
327
|
cart.cartStore.inventoryCheckErrorMessage =
|
|
328
328
|
await cart.stripeStoreHandleInventoryCheck();
|
|
329
329
|
}
|
|
330
|
-
catch (
|
|
330
|
+
catch (_a) {
|
|
331
331
|
// If user provide callback and it throw an exception, default to this message and stop the payment.
|
|
332
332
|
cart.cartStore.inventoryCheckErrorMessage = cart.translate('Unable to check inventory. Please try again.');
|
|
333
333
|
}
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const cart = require('./cart-199b0751.js');
|
|
7
7
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
8
|
-
const handleFetch = require('./handleFetch-
|
|
8
|
+
const handleFetch = require('./handleFetch-864d3c53.js');
|
|
9
9
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
10
|
-
const zonosStore = require('./zonosStore-
|
|
10
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
11
11
|
const classes = require('./classes-b7918f56.js');
|
|
12
12
|
const RemoveIcon$1 = require('./RemoveIcon-081ac073.js');
|
|
13
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
14
|
-
const isDarkColor = require('./isDarkColor-
|
|
13
|
+
const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
|
|
14
|
+
const isDarkColor = require('./isDarkColor-434d71dd.js');
|
|
15
15
|
|
|
16
16
|
const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";
|
|
17
17
|
const ZonosAddressStyle0 = zonosAddressCss;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const RemoveLineIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosBannerCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{border-radius:var(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
|
|
9
9
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
10
|
-
const isDarkColor = require('./isDarkColor-
|
|
10
|
+
const isDarkColor = require('./isDarkColor-434d71dd.js');
|
|
11
11
|
const styles = require('./styles-d1e64fb9.js');
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
|
|
9
9
|
|
|
10
10
|
const zonosCardCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";
|
|
11
11
|
const ZonosCardStyle0 = zonosCardCss;
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const cart = require('./cart-199b0751.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const paypal = require('./paypal-
|
|
9
|
-
const zonosStore = require('./zonosStore-
|
|
8
|
+
const paypal = require('./paypal-4f1ee604.js');
|
|
9
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
10
10
|
const createCustomEvent = require('./createCustomEvent-3e982e57.js');
|
|
11
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
12
|
-
const handleFetch = require('./handleFetch-
|
|
11
|
+
const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
|
|
12
|
+
const handleFetch = require('./handleFetch-864d3c53.js');
|
|
13
13
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
14
14
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
15
|
-
const isDarkColor = require('./isDarkColor-
|
|
15
|
+
const isDarkColor = require('./isDarkColor-434d71dd.js');
|
|
16
16
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
17
17
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
18
18
|
|
|
@@ -1415,7 +1415,7 @@ const ZonosCheckoutFinish = class {
|
|
|
1415
1415
|
void handleFetch.sendErrorLog({
|
|
1416
1416
|
endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order.id}`,
|
|
1417
1417
|
errors: [
|
|
1418
|
-
`Order found but legacy order number doesn
|
|
1418
|
+
`Order found but legacy order number doesn't exist after ${maxRetries} attempts`,
|
|
1419
1419
|
],
|
|
1420
1420
|
metadata: {
|
|
1421
1421
|
allLogs: handleFetch.allLogs,
|
|
@@ -2014,7 +2014,7 @@ const ZonosCurrencyToggle = class {
|
|
|
2014
2014
|
const { exchangeRate } = cart.cartStore;
|
|
2015
2015
|
const options = exchangeRate &&
|
|
2016
2016
|
exchangeRate.sourceCurrencyCode !== exchangeRate.targetCurrencyCode
|
|
2017
|
-
?
|
|
2017
|
+
? [
|
|
2018
2018
|
{
|
|
2019
2019
|
label: exchangeRate.sourceCurrencyCode,
|
|
2020
2020
|
value: exchangeRate.sourceCurrencyCode,
|
|
@@ -2023,7 +2023,7 @@ const ZonosCurrencyToggle = class {
|
|
|
2023
2023
|
label: exchangeRate.targetCurrencyCode,
|
|
2024
2024
|
value: exchangeRate.targetCurrencyCode,
|
|
2025
2025
|
},
|
|
2026
|
-
]
|
|
2026
|
+
]
|
|
2027
2027
|
: [];
|
|
2028
2028
|
// If there is only one currency, don't show the toggle
|
|
2029
2029
|
if (!options.length) {
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
8
|
-
const zonosStore = require('./zonosStore-
|
|
9
|
-
const handleFetch = require('./handleFetch-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const cart = require('./cart-199b0751.js');
|
|
7
|
+
const paypal = require('./paypal-4f1ee604.js');
|
|
8
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
9
|
+
const handleFetch = require('./handleFetch-864d3c53.js');
|
|
10
10
|
const createCustomEvent = require('./createCustomEvent-3e982e57.js');
|
|
11
11
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
12
12
|
const classes = require('./classes-b7918f56.js');
|
|
13
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
14
|
-
const isDarkColor = require('./isDarkColor-
|
|
13
|
+
const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
|
|
14
|
+
const isDarkColor = require('./isDarkColor-434d71dd.js');
|
|
15
15
|
const styles = require('./styles-d1e64fb9.js');
|
|
16
|
-
const CheckoutConfig = require('./CheckoutConfig-
|
|
16
|
+
const CheckoutConfig = require('./CheckoutConfig-eaaf62a1.js');
|
|
17
17
|
const RemoveIcon = require('./RemoveIcon-081ac073.js');
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -913,7 +913,7 @@ const ZonosCheckout = class {
|
|
|
913
913
|
cart.cartStore.inventoryCheckErrorMessage =
|
|
914
914
|
await cart.stripeStoreHandleInventoryCheck();
|
|
915
915
|
}
|
|
916
|
-
catch (
|
|
916
|
+
catch (_a) {
|
|
917
917
|
// If user provide callback and it throw an exception, default to this message and stop the payment.
|
|
918
918
|
cart.cartStore.inventoryCheckErrorMessage = cart.translate('Unable to check inventory. Please try again.');
|
|
919
919
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
|
|
8
8
|
const zonosCollapseCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";
|
|
9
9
|
const ZonosCollapseStyle0 = zonosCollapseCss;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
6
|
|
|
7
7
|
function format(first, middle, last) {
|
|
8
8
|
return ((first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : ''));
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
8
|
-
const handleFetch = require('./handleFetch-
|
|
9
|
-
require('./isDarkColor-
|
|
10
|
-
require('./getBorderRadius-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const cart = require('./cart-199b0751.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
8
|
+
const handleFetch = require('./handleFetch-864d3c53.js');
|
|
9
|
+
require('./isDarkColor-434d71dd.js');
|
|
10
|
+
require('./getBorderRadius-f97c99ad.js');
|
|
11
11
|
|
|
12
12
|
const getZonosSettings = async () => {
|
|
13
13
|
const { errors, json, zonosMode } = await handleFetch.handleFetch('/api/zonos-elements/zonos-settings');
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const cart = require('./cart-199b0751.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
|
-
require('./handleFetch-
|
|
10
|
-
require('./isDarkColor-
|
|
11
|
-
require('./getBorderRadius-
|
|
9
|
+
require('./handleFetch-864d3c53.js');
|
|
10
|
+
require('./isDarkColor-434d71dd.js');
|
|
11
|
+
require('./getBorderRadius-f97c99ad.js');
|
|
12
12
|
|
|
13
13
|
const zonosCountryFlagCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";
|
|
14
14
|
const ZonosCountryFlagStyle0 = zonosCountryFlagCss;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const cart = require('./cart-199b0751.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
|
-
const isDarkColor = require('./isDarkColor-
|
|
9
|
+
const isDarkColor = require('./isDarkColor-434d71dd.js');
|
|
10
10
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
11
|
-
require('./handleFetch-
|
|
12
|
-
require('./getBorderRadius-
|
|
11
|
+
require('./handleFetch-864d3c53.js');
|
|
12
|
+
require('./getBorderRadius-f97c99ad.js');
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Fuse.js v7.0.0 - Lightweight fuzzy-search (http://fusejs.io)
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('zonos-elements.cjs.js', document.baseURI).href));
|